// Create an account monitorconstmonitor=newsig$monitor.Monitor({ asyncFetcherFn: tryFetchAccount, compareFn: checkIfAccountExists, intervalSecs:10,// polling interval in seconds key:'monitor-account', timeoutSecs:2*240// when reached timeout the monitor stops}).onFulfilled(() => {// called when `checkIfAccountExists` returns trueconsole.log('Yay, account active');}).onTimeout(() => {// called when `timeoutSecs` is reachedconsole.log('Hmm, something went wrong');}).start();