It's best to transition pellets when switching brand or type. Around 6-7 months of age is when pellets can be transitioned from juvenile (alfalfa-based) to adult (timothy-based) pellets.
To transition, mix one part of the new pellets with 3 parts of the current pellets. Feed that for a couple/few days. Then increase the portion of the new pellets by mixing equal parts of each together. Again, feed that for a couple/few days. The last mix can be about 3 parts of the new to 1 part of the junior pellets.
By gradually increasing the proportion of the newer pellets to the older, bunny gets to gradually get used to the newer, adult version of the pellets.
Some rabbits may do fine with a 'cold turkey' switch. But it is easier on their gut to transition.