I’ve encountered a whole spectrum of views among JWs on this. Some think you need to get baptised to be sure of being saved. This was sometimes used to pressure people young people or Bible studies who were delaying baptism. Others think interested ones will be saved if not yet baptised. Others think that “honest hearted” ones who haven’t heard the good news (such as in China) might be saved by Jehovah.
On the flip side I’ve heard others assume that only JWs will make it, but that only a proportion of JWs will be judged worthy and make it into the new system - maybe a half, two thirds, or one third, depending on the view of their fellow brothers and sisters. One sister used to say “half of us are here to try the other half”, meaning that only around half of JWs will be saved at Armageddon, and the function of the other half who won’t make it is to serve as a test of faith, presumably by their behaviour and antics, for the other faithful half.
In terms of official Watchtower teaching, they are all over the place too. Some Watchtowers imply that baptism is required for salvation. Others say that Jehovah is the judge and it is not for us to say. They have also flip-flopped on the issue of whether unbaptised children of JWs will survive Armageddon, at times implying that they might not, and and other times implying that they would. I don’t think they currently have a firm ruling on the issue in print, but certain talks in recent years have revisited a hardline attitude.