Let's say My Pokemon has hidden power grass and the opponent has hidden power fighting. I use me first when they use hidden power. Will it use the hidden power grass or hidden power fighting?
Copying Hidden Power doesn't copy the HP type.
So you will use yours. (Grass in your example)