It's an NMN. Because the first letter of the abbreviation NMN (Nicotinamide Mononucleotide) begins with a vowel sound, it takes the article an (not a).
It's an NAD. Since the first letter of the abbreviation NAD (Nicotinamide Adenine Dinucleotide) begins with a vowel sound, we use the article an (not a).