(ms: number)
| 154 | } |
| 155 | |
| 156 | function msToStr(ms: number): string { |
| 157 | if (ms < 1000) return `${ms}ms`; |
| 158 | return `${(ms / 1000).toFixed(1)}s`; |
| 159 | } |
| 160 | |
| 161 | function fmtCost(usd?: number): string { |
| 162 | if (usd === undefined) return '-'; |
no outgoing calls
no test coverage detected