GO:0003955: NAD(P)H dehydrogenase (quinone) activity
Catalysis of the reaction: NAD(P)H + H+ + a quinone = NAD(P)+ + a hydroquinone.