I got the syntax from Ben Newman’s video specifically (about 13:30 min in) and other related stuff I had to scour for in general.
-
I thought we (can) use the import syntax assigned to a variable
-
I thought we use (only) await inside async functions
Your syntax looks like something I would place at the top of a module (file)
From the video:
