How can I convert an onload promise into Async/Await How can I convert an onload promise into Async/Await typescript typescript