Get a g510 keyboard or something similar that has extra keys you can program. Simply program the key so that when you hit it, it hits space X number of times. Tadaa. I considered doing that earlier, but at the same time it is more dangerous than if you had an in game rest feature because it wont stop just because monsters come... But if your in a safe spot /shrug. Locked doors etc. Can also set up different keys to do it different amounts of times if you wanted I suppose.
WHATEVER YOU DO DON'T USE ANYTHING THAT PRESSES SPACE A SHITLOAD OF TIME! Why you ask? Because monsters WILL still spawn in at random and you can in a sense walk into a monster zoo YOU created with the space spam