Thank you for being nice to me as if we were the same age.
act as if ~「であるかのように振る舞う」
if節内は仮定法で過去形が使われています。
直訳は、「同じ年齢であるかのように振る舞ってくれてありがとう」の意味です。
2つ目の文は、「同じ年齢であるかのように私に良くしてくれてありがとう」の意味です。
意図されている意味により近いほうの表現をとると良いかと思います。
Thanks for talking to me just like I'm one of your friends who's the same age as you.
I appreciate you not talking to me like I'm a million years older than you.
この場合、次のような言い方ができますよ。
ーThanks for talking to me just like I'm one of your friends who's the same age as you.
「君の同年代の友達みたいに話しかけてくれてありがとう」
ーI appreciate you not talking to me like I'm a million years older than you.
「すごく年上の人に話すように話してくれなくてありがとう」
ご参考まで!