(token: string, times: number)
| 57 | } |
| 58 | |
| 59 | export function pluralizeToken(token: string, times: number): string { |
| 60 | return `${times} ${Math.abs(times) === 1 ? token : pluralize(token)}`; |
| 61 | } |
| 62 | |
| 63 | export function formatDuration(ms: number, maxDecimals: number = 2): string { |
| 64 | if (ms < 1000) { |
no test coverage detected