"Sign here that you are resigning"
"No thanks, you'll have to fire me if that's what you are trying to do"
Just treat it like any other time you would leave any other role.
If you wouldn’t normally casually resign without an actual written offer to go somewhere else, don’t.