There are many thoughts on this. I'll lay a bit out here on the table, and you can take what you want from it.
There is the group that feels taking in slow protein/fats before beds gives your body energy to fuel you through your sleep which is a long fast. Typically recommended are slow digesting proteins like casein (either the powder or in cheese form i.e. cottage cheese) and then some fats like Natural peanutbutter etc. to slow digestion. Also while you sleep energy comes mainly from fats, so this can also serve that purpose.
Other people feel that eating about 90 minutes pre-bed is close enough , and that the GH release is anti-catabolic enough and that food merely interferes with digestion.
If you're bulking, protein/fats before bed is really hard to go wrong with unless you find it is really lowering your sleep quality. however if you are on a cut and are worried about fat gain, eating your last meal 2h-90mins might be optimal for you. The search feature will give you many more threads, but i hope that gives you something to work with. Most importantly IMO, don't go to bed hungry.