Sodium chloride in the gas forms $\ce{NaCl}$ monomer and $\ce{Na2Cl2}$ dimer. So, no lattice, and those formulae show the number of atoms in the ionic compound, so not just an empirical formula that shows a ratio. So in that sense those are like molecular formulae.
Does sodium chloride in gas state meet the following definition of molecule in the IUPAC gold book?
An electrically neutral entity consisting of more than one atom (n>1). Rigorously, a molecule, in which n>1 must correspond to a depression on the potential energy surface that is deep enough to confine at least one vibrational state.
Regarding the "electrically neutral entity" aspect of the definition, I understand that it means discounting any partial charges. Sodium chloride has no partial charges, only formal charges, and they balance, so it meets the definition. In the case of e.g. $\ce{H2O}$ , which has partial charges on hydrogen and oxygen then whether or not the partial charges cancel out, they'd say that there would be an overall neutral charge on $\ce{H2O}$ because only formal charge is counted. And $\ce{H2O}$ is of course considered by all to be a molecule and thus considered an electrically neutral entity. So Sodium Chloride meets the "electrically neutral" part of the definition.
And I understand that there is a concept of a zwitterion, which is composed of atoms that have a mix of charges but overall neutral charge, so it's not an ion, it's merely composed of ions, but since it has an overall neutral charge, it's a molecule. So, electrically neutral entity is meant to refer to overall charge as neutral, rather than each individual atom.
And Na+Cl- would be electrically neutral since it's an ionic compound, compounds are electrically neutral, so it's not an ion / polyatomic ion, it's ionic in the sense of composed of ions.
So that covers the electrically neutral aspect of the definition.
So then I wonder, does $\ce{Na+Cl-}$ meet the other part of the definition, i.e. the part that states "a molecule, in which n>1 must correspond to a depression on the potential energy surface that is deep enough to confine at least one vibrational state." ?