getNumbers(async function (result) {
global.ko = await result;
console.log(result);
});

bunu bir dener misiniz?