Since the main scope is not async, you will need to do an async anonymous function that calls your function and itself :
(async function() {
await yourFunction();
})();
Or resolve the promise :
yourFunction().then(result => {
// ...
}).catch(error => {
// if you have an error
})