If you do not need websocket time tracking and the element time tracking, I have written a library in TypeScript with a different API and architecture that does kind of the same.
https://github.com/atlassian/browser-interaction-time
https://atlassian.github.io/browser-interaction-time/
If you do not need
websocket time trackingand theelement time tracking, I have written a library in TypeScript with a different API and architecture that does kind of the same.https://github.com/atlassian/browser-interaction-time
https://atlassian.github.io/browser-interaction-time/