You don't need a lot of RAM to run TruNAS. 16gb should be sufficient unless you are planning lots of VMs.
16GB is _not_ sufficient if you have Jellyfin or Immich or similar and a lot of media you want to scroll through quickly; I've found I need a lot of ZFS cache for that to be as responsive as I want, even with SSD storage.