MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getTimeSinceLastInteraction

Function getTimeSinceLastInteraction

src/hooks/useNotifyAfterTimeout.ts:11–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

hasRecentInteractionFunction · 0.85

Calls 1

getLastInteractionTimeFunction · 0.85

Tested by

no test coverage detected