import v8 "rogchap.com/v8go" For scripts that are large or are repeatedly run in different contexts, it is beneficial to compile the script once and used the cached ...
If you want to improve your editor for JXA, use @jxa/global-type. You can just import @jxa/global-type and you can introduce typing and auto complete for JXA.