return await fetch().then()
return todos
then
main function
function
See also Using await within a Promise (SO), Rewriting a Promise chain with an async function (MDN)