Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RioArisk/claudecode_api_RemoteControl
/ formatTokens
Function
formatTokens
app/src/modules/utils.js:65–69 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
63
}
64
65
export
function
formatTokens(n) {
66
if
(!n)
return
''
;
67
if
(n >= 1000)
return
(n / 1000).toFixed(1) +
'k tokens'
;
68
return
n +
' tokens'
;
69
}
70
71
export
function
formatElapsed(ms) {
72
const
s = Math.floor(ms / 1000);
Callers
1
renderAssistant
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected