Medications and such. It depends on if it is chronic or just intermittent. If it is rare, they may just watch it. If it is fast or long lasting, then there are medications that help regulate the heart. It is also good to avoid tobacco, caffeine, and stimulants.
Education. Knowledge is king. This is a complicated disease. Therapeutic lifestyle changes are important. Anti coagulation may be indicated for those with stroke risk factors. Medications or catheter ablation are generally needed for rhythm control.