refactor(ui): sync promiseWithTimeout() helper