"Restart" Battle skill?

So in my project, the protags abilities are based around controlling time (I've had time-travel on the brain recently) and one of the only (non-op) abilities I thought of for use in battles would be to reset time to when the battle began, thus giving the player a second chance at a fight they might have been about to lose (most fights are also more puzzle-y and memorization based to accommodate this) unfortunately I don't exactly know how to do this in MV, and after a quick google search the one thing I found similar to my query was for VXAce.
Here was the (one) answer for that page.
Spoiler: Image
Screenshot (215).png
So would something similar to this work in MV? I'm not sure how difficult something like this would be to code, so sorry in advance for any trouble! :hswt:
And as always thanks in advance for all your help!
Well, I have something similar in my game called "Nope!" which basically calls a common event that escapes the battle & sets a switch. In order to make it so that the ability wasn't just a "let's cycle through battles until I know I can win OR until I find a battle against something I want" I added the switch in order to add a sort of cooldown on the ability (can't use it directly after just using it). You could re-purpose the idea with animations and what not to be like they were right before they started the battle assuming we aren't talking about random encounters.

Another idea is to put all your relevant data into variables (like current hp, current mp, etc) as you enter a battle (like troop event 0, for example) and then when you use this time warp ability set all your stats back to those variables & heal the monsters to max. That could be a common event as well + you can even have animations for the time warp.

Or you could do what they did in your screenshot, which was basically save the encounter information, abort the encounter, and then reissue the encounter. But that's a code change/plugin. Your call.

Original thread: https://forums.rpgmakerweb.com/threads/restart-battle-skill.97134/