(ms: number)
| 80 | } |
| 81 | |
| 82 | function formatDuration(ms: number): string { |
| 83 | const totalSeconds = Math.max(0, Math.round(ms / 1000)); |
| 84 | const minutes = Math.floor(totalSeconds / 60); |
| 85 | const seconds = totalSeconds % 60; |
| 86 | if (minutes <= 0) return `${seconds}秒`; |
| 87 | return `${minutes}分${seconds}秒`; |
| 88 | } |
| 89 | |
| 90 | async function getBearerToken(): Promise<string> { |
| 91 | return await getStoredToken(); |
no outgoing calls
no test coverage detected