()
| 9 | export const DEFAULT_INTERACTION_THRESHOLD_MS = 6000 |
| 10 | |
| 11 | function getTimeSinceLastInteraction(): number { |
| 12 | return Date.now() - getLastInteractionTime() |
| 13 | } |
| 14 | |
| 15 | function hasRecentInteraction(threshold: number): boolean { |
| 16 | return getTimeSinceLastInteraction() < threshold |
no test coverage detected