Catalysis of the reaction: (6S)-6beta-hydroxy-1,4,5,6-tetrahydronicotinamide adenine dinucleotide + ATP = ADP + H+ + NAD(P)H + phosphate.
reduced nicotinamide adenine dinucleotide hydrate dehydratase activity