It depends a bit on how many ports the switch has, but the general commands would look something like this:
delete protocols mstp
wildcard range set protocols rstp interface ge-0/0/[0-23]
wildcard range set protocols rstp interface ge-0/1/[0-3]
wildcard range set protocols rstp interface xe-0/1/[0-3]
The 23 above is for a 24-port switch, and would be replaced by 47 for a 48-port model.
Ron