You will need a retirement visa which must be originally applied for in your home country,non immigrant OA type and I suggest a multiple re entry visa that will allow you to leave and re enter thailand at your will over the year…..these will then need to be extended every year from the local immigration office in thailand in your area,hope this helps