Do you need it to do exactly that? Because it'd be pretty simple to create a SimGroup in your engine function, populate it, and return that. SimGroups can be indexed and iterated over in TS.
Easier still would be to just make a quick "SimGroup manager" class script-side.
What's the exact use-case?