I know there are definition files for Scriptable and Drafts.
I use the Drafts definitions on my Mac within Visual Studio Code. It is very rare for Scriptable I code anything off of i*OS as I can’t test it properly on the Mac.
But, honestly, I tend to keep the relevant documentation open alongside in case I need to reference something in detail or search for something. That is the purpose of the documentation after all. I would argue that switching or viewing alongside is part of most developers workflow; but as they learn more they reference it less - but things also change over time and that is ignored at your peril
I do also have a post relating to some actions I created to support easier JavaScript coding in Drafts.
Hope that helps.