For USB-attached SSDs, TRIM depends on the bridge chip and the operating system. JMicron chips like JMS578 support TRIM over USB when using the Microsoft built-in driver. Check with fsutil behavior query DisableDeleteNotify in Command Prompt.
However, users often mistake it for a problem because: jmicron generic scsi disk device driver windows 10