Catalyzes the transfer of electrons from NADH and NADPH to reduce quinone to the hydroquinone state. a quinone + H(+) + NADH = a quinol + NAD(+) a quinone + H(+) + NADPH = a quinol + NADP(+) Binds 1 FMN per monomer. Belongs to the WrbA family.