(num: number)
| 680 | } |
| 681 | |
| 682 | function formatNumber(num: number): string { |
| 683 | if (num >= 1000000) { |
| 684 | return (num / 1000000).toFixed(1) + "m" |
| 685 | } |
| 686 | if (num >= 1000) { |
| 687 | return (num / 1000).toFixed(1) + "k" |
| 688 | } |
| 689 | return num.toString() |
| 690 | } |
| 691 | |
| 692 | function formatDuration(ms: number): string { |
| 693 | const seconds = Math.floor(ms / 1000) |
no outgoing calls
no test coverage detected