I went out with a friend for the first time in a long time today.
I studied today for the first time in quite a while.
ーI went out with a friend for the first time in a long time today.
「今日久しぶりに友達と遊んだ」
for the first time in a long time で「久しぶりに」
ーI studied today for the first time in quite a while.
「久しぶりに勉強した」
for the first time in quite a while で「久しぶりに」とも言えます。
ご参考まで!