Load external (remote ) script in server side action

does anyone know how to load a js script file from an external location https://domain.com inside plugin server-side action ?

Wondered about this too

Typically you’d include it as a dependency instead. Follow the node instructions for package installation, rather than the in-browser instructions.

(As briefly described here [New Feature] Server side actions now support node modules)

Thanks, @keith for your answer, actually I know this way for importing npm packages, but I’m asking about script files which is not packages and can’t be published as a public npm

so in another word, if I have a self-developed module in a js file how can I import this file on the server side to perform actions using it instead of writing all the code again in the plugin code editor