> 6-8 weeks is kinda weird though, unless you‘re extremely senior and on critical path for a lot of things, or you‘re using up accrued PTO.
If you're a leader in a team, definitely give more notice. It's the professional thing to do. Something that the post -doesn't- say is that you should have a transition plan written down before you tell your boss, just in case you get cut off.
Of course they can still summarily kick you out the door, but it's a chance for you as a leader to do right by the team.