formatTokenCount method
Formats a token count with K/M suffixes.
Implementation
String formatTokenCount(int tokens) {
if (tokens < 1000) return '$tokens';
if (tokens < 1000000) {
return '${(tokens / 1000).toStringAsFixed(1)}K';
}
return '${(tokens / 1000000).toStringAsFixed(1)}M';
}