@Chris **********
This has nothing to do with tax residency, and with DTV you get tax resident already with a full stay of 180 days, let alone when you get back immediately.
And certainly not all countries have that same 180 days. Netherlands and other EU countries have a max of 90 days stay in a 180 day period, you never can stay in EU longer than 90 days when you don't have a resident permit.
And as soon as you have that permit you can stay longet than 180 days, in fact you need to stay longer than 180 days, otherwise you will loose the permit.