MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / formatTokens

Function formatTokens

src/utils/format.ts:133–135  ·  view source on GitHub ↗
(count: number)

Source from the content-addressed store, hash-verified

131}
132
133export function formatTokens(count: number): string {
134 return formatNumber(count).replace('.0', '')
135}
136
137type RelativeTimeStyle = 'long' | 'short' | 'narrow'
138

Callers 14

format.test.tsFile · 0.90
ContextVisualizationFunction · 0.85
IdleReturnDialogFunction · 0.85
ContextSuggestionsFunction · 0.85
GoalPillFunction · 0.85
BuiltinStatusLineInnerFunction · 0.85
AgentRowFunction · 0.85
renderSkillItemFunction · 0.85
getLargeToolSuggestionFunction · 0.85
checkReadResultBloatFunction · 0.85
checkMemoryBloatFunction · 0.85

Calls 1

formatNumberFunction · 0.85

Tested by

no test coverage detected