How to create text without need of doing it in async function

In this example, a value for resolve() is not required.