After some research,I found the answer:
... However, starting from ECMAScript 2022 (ES13), 'await' can be used at the top level of modules without being placed in asynchronous functions. This means that you can directly use the 'await' keyword at the top level of the module without wrapping it in any function. This is a module specific feature and is not applicable to traditional script files.
Here is an example demonstrating how to use await at the top level of a module:
// This is ES moudule.
import fetch from 'node-fetch';
const response = await fetch('https://api.example.com/data');
const data = await response.json();
console.log(data);