Using functions across scripts

I’m new to JavaScript and Scriptable, so apologies for the basic question. I’ve written a number of functions that I’d like to call from several different scripts. Is there a way to load one script from another?

These threads might be useful:

https://talk.automators.fm/t/load-txt-file-from-icloud/1929/7

https://talk.automators.fm/t/import-one-script-from-another/1374/11