When I close a #tab #firefox always opens the tab to the right of it. I would like to suggest it opens the tab #last #active before the closed one.
I use firefox 117.0.1 x64 for windows (at the moment: the version number is expected to go up :))
Thanks for submitting an idea to the Mozilla Connect community! Your idea is now open to votes (aka kudos) and comments.