Twisted Hilbert spaces of 3d supersymmetric gauge theories