TRIM works at a hardware level, its already in your SSD. You leave it to do its job, you cant turn it on or off, its always present.
You should turn off defrag to stop unwanted writes to your SSD as every cell has a write life (minimum number of writes before chance of failure).