(origin: number)
| 121 | }; |
| 122 | |
| 123 | const formatTimer = (origin: number): string => { |
| 124 | const duration = (performance.now() - origin) / 1000; |
| 125 | const min = Math.floor(duration / 60); |
| 126 | const secs = Math.floor(duration % 60); |
| 127 | return min > 0 ? `[${min}m ${secs}s]` : `[${secs}s]`; |
| 128 | }; |
| 129 | |
| 130 | const hasGuide = opts.withGuide ?? settings.withGuide; |
| 131 |