its 180 total days spent. Doesn’t matter if you leave and come back. If you spend more than 180 days in thailand within the same calendar year (jan-dec) you are considered tax resident regardless of type of visa.
Anonymous participant i did mine in Jakarta based on medical treatment. Was very easy and they only required current bank balance, not seasoned for 6 months as some do.
Applied monday morning, picked up Thursday afternoon.