setTimeout(function () { //to do.. }, 1000);
const syncWait = ms => { const end = Date.now() + ms while (Date.now() < end) continue }