After panicking for a few minutes, I used Windows' "Restore Previous Version" to restore a previous version of sessionstore.js, which restored my tab groups and tabs.
This sessionstore.js file should be located in C:\Users\<your username>\AppData\Roaming\Mozilla\Firefox\Profiles\<your profile name>
on Windows.