I assume they are more tools (especially star trek that can cut or heat a rock like a fire) mixed with short range point and click weapons (yeah pistols have sights but not really the default use). Also this seems like we are WAY too into the weeds on realism when I talk about my pretend elf hunting a dragon impregnated by a cthulu like monster with a star trek phaser...
or even old style (if you are an old man like me) Infravision that always seemed more scifi then fantasy anyway.
Well, I've used pistols, rifles (with and without scopes), bows and crossbows. They all have a way of sighting targets so when I look at something like
It just makes me scratch my head. On the other hand most battles in Star Trek seem to be at a maximum range of about 15 feet and they miss a lot so I guess that could explain it.

But I was just giving an alternative view and what I would do in my campaign, people should do whatever makes sense to them.