1.
will; testament; last letter
A document left behind by a deceased person, expressing their final wishes, instructions, or messages to the living.
The legal term for a will is 遺言/遺言書 (or 遺言 in everyday speech), which specifically deals with the distribution of property. 遺書 is broader — it can be any final written message, including personal letters and suicide notes. Common collocations: 遺書を書く (to write a will/note), 遺書を残す (to leave behind a note), 遺書が見つかる (a note is found).