How to align bones so their rotations are the same?
You can add a bone Copy Rotation constraint then Apply Visual Transform to Pose then Apply Pose as Rest Pose.

As far as I can remember someone here in BSE had created a script to make this process faster, you may find it with a quick search.