Let's say it's an important encounter in the campaign, so fleeing isn't an option, and you don't allow resurrection in your campaign, or they do't have scrolls/a cleric. Then what do you do?I'm with the OP, the GM needs a tool to preview the difficulty of the encounter, based on their powers/levels, and the level,powers and gear of the players.
In that case, if it goes bad for the players (and I feel I am to blame for bad balance instead of them screwing up) I take over from the AI and either do something stupid, or offer them to surrender and take it from there.