The easy one if that matches your use case: If your 2 motors are always in sync but need to run in opposite direction (like 2 motors facing each other with a time belt in between) then just wire them together but exchange polarities of the wires so that when one is turning in the positive direction, the other one is turning in the negative one.
Using the library:
If you have 2 motors you will have to have 2 instances of the class AccelStepper, one for each motor.
If so just provide 4 different functions doing what fwd and bwd should be for each motor
if you think those functions should be the same, then inverse the order for the second motor
The first instance could be initialized with (void(*forward)(), void(*backward)()) and the second with AccelStepper (void(*backward)(), void(*forward)());
Third option is to use the 1st constructor method and provide all your pins etc and drive the way you want.