If you would like to sleep the execution for a specific amount of time you could do it by the following ways:
const util = require('util');
const sleep = util.promisify(setTimeout);
or
const sleep = delay => new Promise(resolve => setTimeout(resolve, delay));
then in your code you could simply invoke it as:
await sleep(1000);