I found the solution that partially works, but it may not be applicable to other software. The steps below are for Visual Studio Code:
-
Install the NPM package containing type definitions for GAS using
https://www.npmjs.com/package/@types/google-apps-script
-
In your locally-saved script, create a ‘.js’ file and type
import 'google-apps-script';