JavaScript Update() function funcionality

I’m working on an addon which prints the plane position to the console every second.

In order to do that, I’m modifying the ToolBar.js file from Asobo.

What event do I have to capture to be able to run code every frame or every couple of seconds?
Something like Coherent.on("UPDATE_FRAME", () => { console.log('hello world') } would be nice.

I’m having difficulty finding something.