Catalysis of the reaction: ATP + H2O = ADP + phosphate, to drive the unwinding of a DNA or RNA helix. [ GOC:jl ]

Synonyms: ATP-dependent helicase activity