How do you quit a job?
Decide first, then plan the exit. Have your next step settled, ideally a written offer, tell your manager in person with a short, honest reason, and give enough time and a handoff that nothing drops. Leave the relationship intact.