(date = new Date())
| 12 | } |
| 13 | |
| 14 | export function formatTimestamp(date = new Date()): string { |
| 15 | if (timestampFormatter) { |
| 16 | return timestampFormatter.format(date) |
| 17 | } |
| 18 | return date.toLocaleTimeString([], { |
| 19 | hour: '2-digit', |
| 20 | minute: '2-digit', |
| 21 | }) |
| 22 | } |
| 23 | |
| 24 | export function formatQueuedPreview( |
| 25 | messages: Array<{ content: string }>, |
no outgoing calls
no test coverage detected