...perhaps under the SCRIPTS tab of the editor?
There is already ClearGlobals (https://knucklecracker.com/wiki/doku.php?id=prpl:clearglobals) PRPL function, so you could probably bind that to a key.
We can do almost anything by writing tiny scripts, but this was a QoL suggestion.
Soooooo....
Guess who needs a ClearGlobals button :)
But honestly, if we could get an option to automaticly clear all global variables when reloading the scripts (hitting the "Compile" button), that would be great. It can be like a little checkbox somewhere, and it would help tremendously.
EDIT: I have solved this by making a script with ClrearGlobals in a "once" block, and they adding "1 Delay" to the start of every other script. At the time of making the post, I thought that this was not a viable solution for some reason (I think I was afraid that I will forget to add the "1 Delay" to some script and get punished horribly), but it works just fine.