Take them out as soon as the dryer has completed its cycle, fold or hand straight away.
Alternatively, wet the garment you want to wear before putting it back into the dryer for a dedicated cycle. If you have a dryer that has a water tray, you can instead run the steam cycle.