How do antiviral medications help in treating the flu effectively?

How do antiviral medications help in treating the flu effectively?