Assuming they are all grouped together the capped pipe is the fresh water drain and the one or two uncapped lines are fresh water tank overfill drains.
I cut the cap fitting and put this valve on.
BestPEX 51249 Metal Chrome 1/4 Turn Straight Valve, 0.5" Size
https://www.amazon.com/dp/B002Z9B6U2..._5K8XBbBCHD5CM
This valve is better suited if you don’t have a pex crimp tool. I have used both and they work great.
Flair-It 16880 Plastic Straight Stop Valve, 0.5" Size
https://www.amazon.com/dp/B000BOKOUQ..._PL8XBb007GXP3