auto win
Or you could study endgames so you know how to properly checkmate your opponent in that situation.
Chess isn't about who has the most pieces left lol. If you have many pieces up against a lone king and you still fail to convert it to a win and end up running out of time/stalemating, that's on you and you don't deserve the win because you weren't capable of closing the game. And I checked your rating, you're in the 400s, while that is no issue at all it shows that if someone is in a specific rating range and is unable to convert a huge material advantage to a win then you are exactly where you belong on the rating ladder.
And going AFK just because they aren't resigning is a terrible method, it's against chess.com's TOS, instead as @Sir_TrashPanda said, just study endgames more and convert the game into a win and get it done with. If they stall then report them and move on.
If this doesent change Im going to AFK when people dont resign when they have no material left
Don't do that. It's reportable.
Not resigning? Yeah, sure, it's a little annoying, but sometimes the player with no material forces a draw instead of losing. Really, resigning isn't always the best option when you're down.
But going AFK? That constitutes stalling and is a violation of Fair Play and a reportable offense.
If you need help, please contact our Help and Support team.