There are a few tools for very basic refactoring in the Script Workspace’s Edit menu - things like changing case and changing indent character.
At the moment, renaming variables is probably best done with Find In Files (Ctrl + Shift + F).
Something more sophisticated has been kicking around for years, but the feature is in limbo right now. Have a look at this if you’re interested: