(timestamp: string)
| 299 | }; |
| 300 | |
| 301 | const formatTimestamp = (timestamp: string): string => { |
| 302 | const date = new Date(timestamp); |
| 303 | const base = date.toLocaleTimeString('en-US', { |
| 304 | hour12: false, |
| 305 | hour: '2-digit', |
| 306 | minute: '2-digit', |
| 307 | second: '2-digit', |
| 308 | }); |
| 309 | return `${base}.${String(date.getMilliseconds()).padStart(3, '0')}`; |
| 310 | }; |
| 311 | |
| 312 | const formatDuration = (start: string, end?: string): string => { |
| 313 | const startTime = new Date(start).getTime(); |